import { SellComponent } from './sell.component';
import { DealerListComponent } from './dealer-list/dealer-list.component';
import { CustomerListComponent } from './customer-list/customer-list.component';
import { CreateComponent } from './create/create.component';

export const SellRoutes = [
    {
        path: '',
        component: SellComponent,
        children: [
            { path: '', redirectTo: 'list', pathMatch: 'full' },
            { path: 'customer', component: CustomerListComponent },
            { path: 'dealer', component: DealerListComponent },
            { path: 'create/:item', component: CreateComponent },//item(dealer or customer)
            /*{
                path: 'create',
                loadChildren: './create/create.module#CreateModule'
            }*/
        ]
    }
];
